﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Students/Students.Master" Inherits="System.Web.Mvc.ViewPage<Dictionary<Lecturer, IEnumerable<CollaborationRoom>>>" %>
<%@ Import Namespace="ViewRes" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%:StudentsStrings.FreeThemes%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<span class="titletext"><%:StudentsStrings.FreeThemes%></span>

<%
    if (Model.Values.Count == 0)
    {%>
  -
<%
        return;
    }%>
<%
    foreach (var keyValuePair in Model)
    {
        if (keyValuePair.Value.Count() != 0)
        {%>   
         <h2>
            <%:keyValuePair.Key.ToString()%></h2>
        <div style="margin: 1em auto; position: relative; text-align: left; width: 763px; z-index: 1;">
            <ol style="list-style: none outside none;">
                <%
            foreach (CollaborationRoom room in keyValuePair.Value)
            {%>
                <li>
                    <%
                Html.RenderPartial("~/Views/CollaborationRooms/StudentViewThemeControl.ascx", room, ViewData);%></li>
                <%
            }%>
            </ol>
        </div>
        <%
        }
    }%>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptsContent" runat="server">
</asp:Content>
